﻿using Games.Basic;
using Games.Common;
using Xamarin.Forms;

namespace Games.FlipBlocks
{
    class GameInfo : BaseViewModel, IGameInfo
    {
        public string Name => "方块消消";
        public string Desc => "方块消消是原创游戏，通过屏幕轻扫动作翻滚方块，相同颜色的方块达到3个相连的就会消除，当前方块不会消除。" +
            "\r\n同时消除的方块越多，得分越多，随着积分的提高，方块颜色会越来越多，难度也会提高。" +
            "\r\n玩家需要消除尽量多的方块，尽量同时消除多个方块。" +
            "\r\n❌可以清除下一步，同时消除4个会奖励一个❌，每多消除一个多奖励一个❌。";
        public string Version => "1.0";
        public string ID => "9FE66397-F172-482D-A2B4-A4615A237099";
        public string BuildDate => "20200723";
        public ContentPage NewPage() => PageHolder.Get(() => new FlipPage(this));

        private int score;
        private int broomCount;
        public int BroomCount
        {
            get { return broomCount; }
            set { SetProperty(ref broomCount, value); }
        }
        public int Score
        {
            get { return score; }
            set { SetProperty(ref score, value); }
        }
    }
}
